package books.JavaHighConcurrcyProgramDesign.Chapter2;

/**
 * @Description
 * @Author bloodcolding
 * @Date 2021/04/03 11:38 PM
 */
public class CreateThread {
    public static void main(String[] args) throws Exception {
        Thread t1 = new Thread() {
            @Override
            public void run() {
                super.run();
            }
        };
        t1.start();

        Thread t2 = new Thread(new RunnableImp());
        t2.start();
    }

    static class RunnableImp implements Runnable {

        @Override
        public void run() {
            System.out.println("Runnable implements");
        }
    }
}